package com.drpclub.gamebackend.common.utils.log;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 信息收集Bean
 *
 * @author: dongruipeng
 * @Descrpition: 存储 InformationCollectAop 过滤器抓取的数据
 * @date: 2019year 08month14day  17:17:35
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("User Behavior Log")
public class LogCollectInfo implements Serializable {

    private String requestUrl;

    private String username;

    private String roleType;

    private String requestMethod;

    private String agent;//User-Agent

    private String ip;

    private long useTimeInMs;//响应耗时

    private long requestTimeInMs; // 请求时间

    private String action;

    private int responseStatus;//http响应码

    private int errorCode; //自定义errorCode，判断是否非法操作 返回给客户端信息

    private String errorMsg; //错误信息 返回给客户端

    private String exceptionType; //异常类型 例如: WrongCodeException

    private String exceptionMsg; //异常信息
}
